<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>实名认证</title>
<link type="image/x-icon" rel="shortcut icon" href="/images/user/favicon.png" >
<link type="text/css" href="/css/user/users/safety_information.css" rel="stylesheet"/>
<link type="text/css" href="/css/user/users/global_users.css" rel="stylesheet"/>
<link type="text/css" rel="stylesheet" href="/css/dialog.min.css">
<link type="text/css" rel="stylesheet" href="/css/user/users/realname_authentication.css">
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/js/dialog.min.js"></script>
<script type="text/javascript" src="/js/bstdialog.min.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/ajaxfileupload.js"></script>
</head>
<body>
<div class="Wrapper">
	<!--会员中心头部-->
<jsp:include page="../../../common/member/memberHeader.jsp"></jsp:include>
     <!--会员中心头部-->
    <!--会员中心中间部分-->
    <div class="uc_bd mt20 mb20 ">
    	<div class="uc_layer">
            <div class="account">
                <!--会员信息左侧-->
                <jsp:include page="../../../common/member/member_information/left.jsp"></jsp:include>
            	<!--会员信息左侧-->
                <!--基本资料右侧-->
                <div class="member_r fr">
                	<div class="uitopb uitopb_border">
                    	<div class="lm-t tabs">会员信息>实名认证</div>
                    	<input type="hidden" name="id" id="id" value="${identify.id}">
                    	<input type="hidden" name="state" id="state" value="${identify.state}">
                        <div class="uc_content order">
                        	<h3 style="color: red;">
                        		<c:if test="${identify.state != 1 && identify.state != 2 && identify.state != 3}">
		                        	请完善您的实名认证资料
		                        </c:if>
                        		<c:if test="${identify.state == 1}">
	                        	正在审批中，请耐心等待！
	                        	</c:if>
	                        	<c:if test="${identify.state == 2}">
	                        	审批退回，请重新提交正确的信息！
	                        	</c:if>
	                        	<c:if test="${identify.state == 3 }">
	                        	已认证成功！
	                        	</c:if>
	                        </h3>
                        	<div class="form_field">
                        		<dl class="cle">
                        			<dt>真实姓名：</dt>
                        			<dd>
                        				<input type="text" name="realname" value="${identify.pIdentifyRealName}" />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>身份证号码：</dt>
                        			<dd>
                        				<input type="text" name="id_num" value="${identify.pIdentifyCard}" />
                        			</dd>
                        		</dl>
                        		<dl class="cle">
                        			<dt>身份证到期时间：</dt>
                        			<dd>
                        				<input type="text" class="wdpk_date"  name="id_deadtime"  value="<fmt:formatDate value="${identify.cardLastDate}" pattern="yyyy-MM-dd"/>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                        			</dd>
                        		</dl>
                        		<div class="upload_field">
                        			<input type="file" id="filehidden" name="filehidden">
                        			<ul>
                        				<li class="cle">
                        					<dl class="upload_imgs">
                        						<dt>身份证正面:</dt>
                        						<dd>
                        						<c:if test="${identify.cardUpUrl == null}">
                        							<div>
                        								<img class="uploader_btn" data-imgtype="0" src="/images/user/users/membercenter/identity_uploader.png">
							                        </div>
							                        <p style="display:none;">
                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
                        								<a class="graybtn checkview" href="javascript:void(0);">查看</a>
                        							</p>
							                     </c:if>
							                     <c:if test="${identify.cardUpUrl != null}">
                      								<div>
                      									<img data-imgtype="0" src="${identify.cardUpUrl}">
                      								</div>
                      								<c:if test="${identify.state == 0 || identify.state == 2}">
	                      								<p>
	                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
	                        								<a class="graybtn checkview" href="javascript:void(0);" >查看</a>
	                        							</p>
	                        						</c:if>
	                        						<c:if test="${identify.state == 1 || identify.state == 3}">
	                      								<p>
	                        								<a class="graybtn checkview" href="javascript:void(0);" >查看</a>
	                        							</p>
	                        						</c:if>
							                     </c:if>
                        							
                        						</dd>
                        					</dl>
                        					<dl class="img_sample">
                        						<dt>示例:</dt>
                        						<dd>
                        							<div>
                        								<img alt="示例图片" src="/images/user/users/membercenter/z.jpg">
                        							</div>
                        							<p>注：支持gif，jpeg，jpg，png，bmp的图片格式。图片大小不超过2M。</p>
                        						</dd>
                        					</dl>
                        				</li>
                        				
                        				<li class="cle">
                        					<dl class="upload_imgs">
                        						<dt>身份证反面:</dt>
                        						<dd>
                        							<c:if test="${identify.cardDownUrl == null}">
	                        							<div>
	                        								<img class="uploader_btn" data-imgtype="0" src="/images/user/users/membercenter/identity_uploader.png">
								                        </div>
								                        <p style="display:none;">
	                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
	                        								<a class="graybtn checkview" href="javascript:void(0);">查看</a>
	                        							</p>
								                     </c:if>
								                     <c:if test="${identify.cardDownUrl != null}">
	                      								<div>
	                      									<img data-imgtype="0" src="${identify.cardDownUrl}">
	                      								</div>
	                      								<c:if test="${identify.state == 0 || identify.state == 2}">
		                      								<p>
		                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
		                        								<a class="graybtn checkview" href="javascript:void(0);">查看</a>
		                        							</p>
		                        						</c:if>
		                        						<c:if test="${identify.state == 1 || identify.state == 3}">
		                      								<p>
		                        								<a class="graybtn checkview" href="javascript:void(0);" >查看</a>
		                        							</p>
		                        						</c:if>
								                     </c:if>
                        						</dd>
                        					</dl>
                        					<dl class="img_sample">
                        						<dt>示例:</dt>
                        						<dd>
                        							<div>
                        								<img alt="示例图片" src="/images/user/users/membercenter/f.jpg">
                        							</div>
                        							<p>注：支持gif，jpeg，jpg，png，bmp的图片格式。图片大小不超过2M。</p>
                        						</dd>
                        					</dl>
                        				</li>
                        				
                        				<li class="cle">
                        					<dl class="upload_imgs">
                        						<dt>手持身份证:</dt>
                        						<dd>
                        							<c:if test="${identify.handCardUrl == null}">
	                        							<div>
	                        								<img class="uploader_btn" data-imgtype="0" src="/images/user/users/membercenter/identity_uploader.png">
								                        </div>
								                        <p style="display:none;">
	                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
	                        								<a class="graybtn checkview" href="javascript:void(0);">查看</a>
	                        							</p>
								                     </c:if>
								                     <c:if test="${identify.handCardUrl != null}">
	                      								<div>
	                      									<img data-imgtype="0" src="${identify.handCardUrl}">
	                      								</div>
	                      								<c:if test="${identify.state == 0 || identify.state == 2}">
		                      								<p>
		                        								<a class="btn uploader_btn" data-imgtype="0" href="javascript:void(0);">重新上传</a>
		                        								<a class="graybtn checkview" href="javascript:void(0);">查看</a>
		                        							</p>
		                        						</c:if>
		                        						<c:if test="${identify.state == 1 || identify.state == 3}">
		                      								<p>
		                        								<a class="graybtn checkview" href="javascript:void(0);" >查看</a>
		                        							</p>
		                        						</c:if>
								                     </c:if>
                        						</dd>
                        					</dl>
                        					<dl class="img_sample">
                        						<dt>示例:</dt>
                        						<dd>
                        							<div>
                        								<img alt="示例图片" src="/images/user/users/membercenter/s.jpg">
                        							</div>
                        							<p>注：支持gif，jpeg，jpg，png，bmp的图片格式。图片大小不超过2M。</p>
                        						</dd>
                        					</dl>
                        				</li>
                        				
                        			</ul>
                        			<p class="btn_box">
	                        			<c:if test="${identify.state == 0 || identify.state == 2 || identify.state == null }">
	                        				<a class="graybtn" href="javascript:void(0);">确认上传</a>
	                        			</c:if>
                        			</p>
                        		</div>
                        	</div>
                      	</div>
                    </div>
                </div>
                <!--会员中心右侧-->
                <div class="cl"></div>
			</div>
      	</div>
    </div>
    <!--会员中心中间部分-->
    <!---------------------------------footer------------------------------------>
  	<jsp:include page="../../../common/footer.jsp"/>
  	
  	<!---------------------------------footer结束------------------------------------>
</div>
<script type="text/javascript" src="/js/user/users/member_center/member_information/realname_authentication.js"></script>
</body>
</html>